import baseRequest from '../utils/requset'

// 自提点数据统计 /api/selfPickup/firstPage get
export function getSelfPickupFirstPageApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/firstPage',
        'get',
        data
    )
}
// 自提点首页搜索 /api/selfPickup/search post
export function getSelfPickupSearchApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/search',
        'post',
        JSON.stringify(data)
    )
}

// 搜索手机号  姓名  穿透  /api/selfPickup/drillByPhone  get
export function getSelfPickupDrillByPhoneApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/drillByPhone',
        'get',
        data
    )
}

// 首页各个数字点击查询接口 /api/selfPickup/list post
export function getSelfPickupListApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/list',
        'post',
        JSON.stringify(data)
    )
}

// 处理出库  单个或者批量 /api/selfPickup/handleOutbound post
export function handleOutboundApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/handleOutbound',
        'post',
        JSON.stringify(data)
    )
}
// 处理入库  单个或者批量 /api/selfPickup/handleInbound post
export function handleInboundApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/handleInbound',
        'post',
        JSON.stringify(data)
    )
}

// 扫描之后的运单号查询运单信息 /api/selfPickup/queryWaybillInfoByNo get
export function queryWaybillInfoByNoApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/queryWaybillInfoByNo',
        'get',
        data
    )
}

// 取消出入库 /api/selfPickup/cancel  post
export function cancelSelfPickupApi (data) {
    return baseRequest.baseRequest(
        'api/selfPickup/cancel',
        'post',
        JSON.stringify(data)
    )
}


// 运单详情  流程  /api/selfPickup/expressDetail/{orderId}  get请求 传订单id  
export function getSelfPickupExpressDetailApi (orderId) {
    return baseRequest.baseRequest(
        `api/selfPickup/expressDetail/${orderId}`,
        'get'
    )
}
 